package com.hamster.crmpre.web;

import com.hamster.crmpre.pojo.CourseTask;
import com.hamster.crmpre.service.ParticipationRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 参课率的Controller
 * @author Tarry
 * @create 2019/12/28 16:32
 */
@RestController
@RequestMapping("participationRateController")
public class ParticipationRateController {
    @Autowired
    private ParticipationRateService participationRateService;

    /**
     * 查询参课任务列表
     * @return
     */
    public ResponseEntity<List<CourseTask>> listCourseTasks(){
        List<CourseTask> list =  participationRateService.listCourseTasks();
        return ResponseEntity.ok(list);
    }



}
